#!/bin/bash

rm -rf build
mkdir build
cd build
clear

cmake ../
make 

cd ..

rm -rf led_demo
mkdir led_demo
cd led_demo

cp ../build/LED_DEMO .
cp ../../c-periphery-src/lib/libperiphery.a .

cd ..

cp run.sh ./led_demo -rf

rm -rf ~/Public/led_demo
cp led_demo ~/Public -rf
chmod -R 777 ~/Public

